#ifndef MY_THREAD_H
#define MY_THREAD_H

#include <QObject>

class My_Thread : public QObject
{
    Q_OBJECT
public:
    explicit My_Thread(QObject *parent = nullptr);
    //线程处理函数
    void myTimerout();
    //设置flag，用于判断是否结束线程处理函数的while循环
    void setFlag(bool flag = true);

signals:
    void mySignal();

public slots:

private:
    bool isStop;

};
#endif // MY_THREAD_H
